<template>
	<view>
		<web-view :src="'/static/test.html?'+token" style="width: 100%;height: 400px;"></web-view>
	</view>

</template>

<script>
	import {
		getToken
	} from '../utils/auth';
	export default {
		data() {
			return {
				loginName: 151515,
				token: "",
			}
		},
		onLoad: function(option) {


			this.loginName = this.$store.state.user.name; //
			//获取token
			this.token = getToken("App-Token");
			console.log("token:" + this.token);

			uni.setTabBarItem({
				index: 0,
				visible: true
			});
			uni.setTabBarItem({
				index: 1,
				visible: true
			});
			uni.setTabBarItem({
				index: 2,
				visible: true
			});
			uni.setTabBarItem({
				index: 3,
				visible: true
			});

		},


	}
</script>

<style>

</style>